# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-tts-plugin-piper
pkgver=0.0.1
pkgrel=0
pkgdesc="OpenVoiceOS TTS plugin for piper"
url="https://github.com/OpenVoiceOS/ovos-tts-plugin-piper"
# armhf, x86, s390x, riscv64 and loongarch64 blocked by onnxruntime -> py3-piper-tts
arch="noarch !armhf !x86 !s390x !riscv64 !loongarch64"
license="Apache-2.0"
depends="
	py3-ovos-plugin-manager
	py3-piper-tts
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-tts-plugin-piper/archive/refs/tags/V${pkgver//_alpha/a}.tar.gz"
options="!check" # No tests
builddir="$srcdir/ovos-tts-plugin-piper-${pkgver//_alpha/a}"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
4b5f0f2e4fdd980943e9dd084e5914810b41d8073680d2ba15235d752e94e9fb1408685f82eeb805c4c10ba6499661725e1860fdae04b2a43d23c80fa5ecb805  py3-ovos-tts-plugin-piper-0.0.1.tar.gz
"
